package com.unbox.admin.hystrix;

import com.unbox.admin.entity.Apps;
import com.unbox.admin.fegin.AppsFegin;
import com.unbox.common.response.UnboxResponse;
import com.unbox.common.table.UnBoxPage;
import org.springframework.stereotype.Component;
import java.util.List;

/**
 * <p>
 * < 应用管理业务熔断配置
 * </p>
 *
 * @author 王振宇
 * @since 2021-05-13
 */
@Component
public class AppsHystrix implements AppsFegin {

    @Override
    public UnboxResponse<UnBoxPage> getPageList(Apps apps, Integer pageNo, Integer pageSize) {
        return new UnboxResponse
                .Builder<UnBoxPage>()
                .serviceFail()
                .build();
    }

    /**
     * 查询列表
     *
     * @param apps
     * @return
     */
    @Override
    public UnboxResponse<List<Apps>> getList(Apps apps) {
        return new UnboxResponse
                .Builder<List<Apps>>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Apps> info(Apps apps) {
        return new UnboxResponse
                .Builder<Apps>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<List<Apps>> idsAppss(List<Integer> ids) {
        return new UnboxResponse
                .Builder<List<Apps>>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> save(Apps apps) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> batchSave(List<Apps> appss) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> update(Apps apps) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> batchUpdate(List<Apps> appss) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> delete(Apps apps) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> deleteBatch(List<Integer> ids) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }
}
